# encoding: utf-8
# @File  : test01_login_success.py
# @Author: wu shaofan
# @Date  :  2024/06/18
# @Desc :
import allure

from PO.page.page_login import PageLogin


class TestLogin():
    def setup_class(self):
        self.login = PageLogin()

    def test_login_success(self):
        with allure.step('测试步骤一：点击我的按钮'):
            self.login.page_click_mine_btn()

        with allure.step('测试步骤二：点击登录'):
            self.login.page_click_login_btn()

        with allure.step('测试步骤三：输入用户名'):
            self.login.page_input_username('18325539630')

        with allure.step('测试步骤四：输入密码'):
            self.login.page_input_password('mike123456')

        with allure.step('测试步骤五：点击登录'):
            self.login.page_click_login_btn_02()

        with allure.step('测试步骤六：点击确定按钮'):
            self.login.page_click_ok_btn()

